package com.app.service;

import com.app.model.MessageModel;
import com.app.model.MessageReadModel;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface MessageReadService {


    MessageReadModel getReadByReadId(int id,Integer personId);

//    Page<MessageReadModel> getPageReadList(Integer page,Integer limit,String title);//消息管理分页查询

//    List<MessageModel> getMesList(List<Integer> idList);//根据部门ID筛选
      List<MessageReadModel> getMesListByPersonId(Integer personId);//根据人员ID查询

    void update(MessageReadModel model);

    void insert(MessageReadModel model);

    void delete(int id);

    List<MessageReadModel> selectReadList();

    void deleteByMsId(Integer id);

    void deleteByMsIdAndPersonId(Integer id, Integer id1);
}
